package com.heima.lock.sjms.模板模式;

/**
 * @author 陈辉
 * @data 2024 11:49
 */

public class Demo {
    public static void main(String[] args) {
        EatTemplate stu = new Student();
        stu.eat();

        System.out.println("--------------------");

        Teacher tea = new Teacher();
        tea.eat();
    }
}
